<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <title>微信安全支付</title>
</head>
<body>
    <div align="center" id="qrcode">
        <p >扫我，扫我</p>
    </div>
    <div align="center">
        <a href="#">返回首页</a>
    </div>
</body>
    <script src="__PUBLIC__/Weixin/Js/qrcode.js"></script>
    <script>
        var url = "<?php echo $product_url;?>";
        //参数1表示图像大小，取值范围1-10；参数2表示质量，取值范围'L','M','Q','H'
        var qr = qrcode(10, 'M');
        qr.addData(url);
        qr.make();
        var dom=document.createElement('DIV');
        dom.innerHTML = qr.createImgTag();
        var element=document.getElementById("qrcode");
        element.appendChild(dom);
    </script>
</html>